package com.internetCafes.spms.web.tenant.model;

import com.alibaba.fastjson.annotation.JSONField;
import java.io.Serializable;
import java.util.Date;


/**
 * 租户组织架构
 * 
 * @author Sunny
 * @email rekeeper2011@hotmail.com
 * @date 2019-10-31 18:09:54
 */
public class TenantDeptInfo implements Serializable {

	private static final long serialVersionUID = 1L;
	
    /**
     * 本表id
     */
	private Long id;

    /**
     * 租户id
     */
	private Long tenantId;

    /**
     * 部门名称
     */
	private String deptName;

    /**
     * 父级id
     */
	private Long parentId;

    /**
     * 类型
     */
	private Integer type;

    /**
     * 排序
     */
	private Integer sort;

    /**
     * 状态
     */
	private Integer status;

    /**
     * 创建人
     */
	private Long createBy;

    /**
     * 创建时间
     */
	private Date createTime;

    /**
     * 修改人
     */
	private Long updateBy;

    /**
     * 修改时间
     */
	private Date updateTime;

	public TenantDeptInfo(){}
	public TenantDeptInfo(Long id, String deptName, Long parentId) {
		this.id = id;
		this.deptName = deptName;
		this.parentId = parentId;
	}
	public TenantDeptInfo(Long tenantId, String name, Long parentId, Integer type, Integer sort, Integer status) {
		this.tenantId = tenantId;
		this.deptName = name;
		this.parentId = parentId;
		this.type = type;
		this.sort = sort;
		this.status = status;
		this.createTime = new Date();
	}


	@JSONField(name = "id")
	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	@JSONField(name = "tenant_id")
	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	public Long getTenantId() {
		return tenantId;
	}

	@JSONField(name = "dept_name")
	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getDeptName() {
		return deptName;
	}

	@JSONField(name = "parent_id")
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Long getParentId() {
		return parentId;
	}

	@JSONField(name = "type")
	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getType() {
		return type;
	}

	@JSONField(name = "sort")
	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getSort() {
		return sort;
	}

	@JSONField(name = "status")
	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getStatus() {
		return status;
	}

	@JSONField(name = "create_by")
	public void setCreateBy(Long createBy) {
		this.createBy = createBy;
	}

	public Long getCreateBy() {
		return createBy;
	}

	@JSONField(name = "create_time")
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	@JSONField(name = "update_by")
	public void setUpdateBy(Long updateBy) {
		this.updateBy = updateBy;
	}

	public Long getUpdateBy() {
		return updateBy;
	}

	@JSONField(name = "update_time")
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}
}
